import java.util.Scanner;
public class Text {
    public static void main(String[] args) {
        int left = 0;
        int right = 0;

        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入数字");
        int ret = scanner.nextInt();

            for(left = 0;left < ret;left++){
                for (right = 0;right < ret;right++){
                    if(left == right){
                        System.out.print("*");
                    } else if (left + right == ret - 1) {
                        System.out.print("*");
                    }else {
                        System.out.print(" ");
                    }
                }
                System.out.println();
            }
    }
}
